import request from '@/utils/request'

// 新增
export function addArticle(data) {
	return request({
		url: '/admin/article/add',
		method: 'post',
		data: data
	})
}
// 修改文章
export function editArticle(data) {
	return request({
		url: '/admin/article/update',
		method: 'post',
		data: data
	})
}

// 删除文章
export function deleteArticle(data) {
	return request({
		url: '/admin/article/del',
		method: 'post',
		data: data
	})
}

// 查询文章列表
export function getArticleList(data) {
	return request({
		url: '/admin/article/list',
		method: 'post',
		data: data
	})
}

// 查询文章详情
export function getArticleDetail(data) {
	return request({
		url: '/admin/article/' + data,
		method: 'get'
	})
}
